/********************************************************************
	created:	2013/01/01
	created:	1:1:2013   23:44
	filename: 	e:\Code\DataStructure\Code\DataStructure\Queue_Lst.h
	file path:	e:\Code\DataStructure\Code\DataStructure
	file base:	Queue_Lst
	file ext:	h
	author:		DianWang
	
	purpose:	Queue Via List
*********************************************************************/

#pragma once
#include "Macro.h"
#include "Struct.h"

class CQueue_Lst
{
public:
    CQueue_Lst(void);
    ~CQueue_Lst(void);

public:
    void Enqueue(double data);
    bool Dequeue(double& data);
    void Clear();

    int GetSize();
    bool IsEmpty();
    bool GetHead(double& data);

private:
    Node* m_head;
    Node* m_tail;
    int m_size;
};